{* Box: Inheritance:Show leavings ---------------------------------------------------------------------------------------------*}

<div style="padding:10px">
	<h3>{$smarty.config.ContentEditor_inheritance_title} ({$linked_count}) {*<a href="javascript:void(0);" onclick="switchView('DivContentEditorOverviewActiveLinks{$obj.obj_id}');" >{$smarty.config.ContentList_inheritance_open_close}</a>*}</h3>
	<div class="contentbox_box_wide" style="width:100%;">
		<div class="contentbox_header">&nbsp;</div>
		<div class="contentbox_inner">
			{*<div class="contentbox_box" id='DivContentEditorOverviewActiveLinks{$obj.obj_id}' style="display:none;">*}
				{$linked_count} {$smarty.config.ContentEditor_inheritance_count}<br /><br />
				{$smarty.config.ContentEditor_inheritance_select}<br /><br />
				<form action="" id="formDeleteLinks_{$obj.obj_id}" onsubmit="return false;">
					<input type="hidden" id="obj_id" name="obj_id" value="{$obj.obj_id}" />
					<input type="hidden" id="project_id" name="project_id" value="{$obj.obj_key_project_id}" />
					{foreach from=$linked_objects item=delobj name="linkedloop"}
						<input type="checkbox" name="dellink[]" id="dellink[]" value="{$delobj.obj_id}">
						{foreach from=$delobj.PATH item=path}
							{$path.obj_name}&nbsp;/ &nbsp;
						{/foreach}
						<br />
					{/foreach}
					<br />
					<input type="button" onclick="{literal}xajax.request({ccdsclass:'ccdsContentEditor',ccdsfun:'ContentEditorDeleteLinks'},{parameters:[xajax.getFormValues('formDeleteLinks_{/literal}{$obj.obj_id}{literal}')]});{/literal}" value="Vernüpfungen löschen" />
					<div class="clear"></div>
				</form>
			{*</div>*}
		</div> {* /contentbox_inner *}
	</div> {* /contentbox *}
	<br />
	
	

	
	<div style="float:left;">	
		{* Box: Inheritance:New leavings ---------------------------------------------------------------------------------------------*}
		<h3>{$smarty.config.ContentList_inheritance_set}</h3>
			<div class="contentbox">
				<div class="contentbox_header">&nbsp;</div>
				<div class="contentbox_inner">
					<form action="" id="formCreateNewLinks_{$obj.obj_id}" onsubmit="return false;">
						<input type="hidden" id="obj_id" name="obj_id" value="{$obj.obj_id}" />
						<input type="hidden" id="project_id" name="project_id" value="{$obj.obj_key_project_id}" />
						<div style="overflow:auto;max-height:400px;border-bottom:1px solid #ccc;">
							Wählen Sie die Objekte aus, in denen Sie einen Link zum aktuellen Objekt erzeugen möchten.<br /><br />
							<div id="linkstructure_obj0_{$obj.obj_id}"></div>
							<br />
						</div>
						<br />
						<input type="checkbox" name="link_current_obj" id="link_current_obj" value="1" /> aktuell gewähltes Objekt als Link einfügen<br />
						<input type="checkbox" name="link_below" id="link_below" value="1" /> Objekte darunter als Links einfügen<br />
						<br />
						<input type="button" onclick="{literal}xajax.request({ccdsclass:'ccdsContentEditor',ccdsfun:'ContentEditorCreateLinks'},{parameters:[xajax.getFormValues('formCreateNewLinks_{/literal}{$obj.obj_id}{literal}')]});{/literal}" value="ausführen" />
					</form>
				</div> {* /contentbox_inner *}
			</div> {* /contentbox *}
			<br />
	</div>
	{if $parent_link_count > 0}
		<div style="float:left;margin-left:30px;">
			<h3>{$smarty.config.ContentEditor_inheritance_quickset}</h3>
			<div class="contentbox">
				<div class="contentbox_header">&nbsp;</div>
				<div class="contentbox_inner">
					Das darüberliegende Objekt ist {$parent_link_count}	mal verlinkt.<br />
					<form action="" id="formCreateNewParentLinks_{$obj.obj_id}" onsubmit="return false;">
						<input type="hidden" id="obj_id" name="obj_id" value="{$obj.obj_id}" />
						<input type="hidden" id="project_id" name="project_id" value="{$obj.obj_key_project_id}" />
						<br />
						<input type="checkbox" name="link_parents" id="link_parents" value="1" /> aktuell gewähltes Objekt (und darunter) als Link einfügen<br />
						<input type="button" onclick="{literal}xajax.request({ccdsclass:'ccdsContentEditor',ccdsfun:'ContentEditorCreateParentLinks'},{parameters:[xajax.getFormValues('formCreateNewParentLinks_{/literal}{$obj.obj_id}{literal}')]});{/literal}" value="ausführen" />
					</form>
				</div> {* /contentbox_inner *}
			</div> {* /contentbox *}
			<br />
		</div>	
	{/if}
	<br style="clear:both;" />

	{$plugin_content}

	
	<br style="clear:both;" />
</div>


